import type { AxiosRequestConfig } from 'axios'
import type { ApiResult } from '@/types/app'
import type { RequestOptions } from '@/utils/http'
import type { GetAssetInteraction, ExportAssetInteractionParams } from './type'
import { http } from '@/utils/http'
export const logAuditApi = {
  /** 获取接口列表 */
  GetLogAuditRecordsList(config?: AxiosRequestConfig<GetAssetInteraction>, options?: RequestOptions) {
    return http.post<ApiResult<any>>({ url: '/risk/api/v1/flow/preciseSearch', ...config }, options)
  },

  /**模型下拉数据 */
  GetLogAuditModelList(config?: AxiosRequestConfig<any>, options?: RequestOptions) {
    return http.get<ApiResult<any>>({ url: '/risk/api/v1/logmodel/list', ...config }, options)
  },
  /** 新增模型 */
  AddLogAuditModel(config?: AxiosRequestConfig<any>, options?: RequestOptions) {
    console.log(config)
    return http.post<ApiResult<any>>({ url: '/risk/api/v1/logmodel/save', ...config }, options)
  },
  /**删除模型 */
  DeleteLogAuditModel(id: string, options?: RequestOptions) {
    return http.delete<ApiResult<any>>({ url: `/risk/api/v1/logmodel/remove/${id}` }, options)
  }
}
